

import clientcache from '../../../xc/sys/clientcache.js';

var club_scan={
  cofnig:{
    height:30,
    arrival:{
      autoscan:"1",
      autopost:"-1",
      interval:10
    },
    writeoff:{
      autoscan:"1",
      autopost:"-1",
      interval:10
    }

  },
  getconfig(){
    var that = this
    return new Promise(function (resolve){       
      clientcache.getval("clubscan").then(function(val){
        if(val&& val.arrival){
          that.cofnig=val;
        }
        resolve(that.cofnig)
      })
    })   
  },
  setconfig(val){
 
    clientcache.setval("clubscan",val)
  } ,
 
}
module.exports = club_scan;